package main

import "fmt"

func is_shuixianhua(n int) bool {
  first := n % 10
  second := (n/10)%10
  third := (n/100)%10

  //fmt.Printf("n:%d first:%d second:%d third:%d\n",n,first,second,third)
  sum := first*first*first+second*second*second+third*third*third
  if sum == n {
    return true
  }
  return false
}

func example1() {
  for i := 100; i < 1000; i++ {
    if is_shuixianhua(i) == true {
      fmt.Printf("[%d] is prime\n", i)
    }
  }
}

func main() {
  example1()
}
